from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import EmployeeViewSet  # 从当前应用的views导入视图集

router = DefaultRouter()

router.register(r'employees', EmployeeViewSet)


urlpatterns = [
    # 包含路由器生成的所有路由
    path('', include(router.urls)),
]
